package com.weixin.common.security.feign;

import feign.Logger;
import feign.RequestInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @version 1.0.0
 * @className: FeignConfig
 * @description: Feign 配置注册
 * @author: zhangjunfa
 * @date: 2023/6/9 16:59
 */
@Configuration
public class FeignAutoConfig {

    @Bean
    public Logger.Level feignLoggerLevel() {
        // 输出日志级别FULL
        return Logger.Level.FULL;
    }

    @Bean
    public RequestInterceptor requestInterceptor() {
        return new FeignRequestInterceptor();
    }
}
